package com.example.trackcircuitdiagnosis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.trackcircuitdiagnosis.entity.MonitoringProjectEntity;
import com.example.trackcircuitdiagnosis.mapper.DeviceMapper;
import com.example.trackcircuitdiagnosis.service.MonitoringProjectService;
import com.example.trackcircuitdiagnosis.mapper.MonitoringProjectMapper;
import com.example.trackcircuitdiagnosis.vo.DeviceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 23639
* @description 针对表【monitoring_project(监测项目表)】的数据库操作Service实现
* @createDate 2023-12-01 21:16:41
*/
@Service
public class MonitoringProjectServiceImpl extends ServiceImpl<MonitoringProjectMapper, MonitoringProjectEntity>
    implements MonitoringProjectService{
    @Autowired
    private MonitoringProjectMapper monitoringProjectMapper;

    @Override
    public List<DeviceVo> getAllMonitoringDevice() {

        return monitoringProjectMapper.selectDeviceVoTree();

    }
}




